package com.gl.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gl.common.vo.FrontProduct;
import com.gl.dao.FrontProductDao;
import com.gl.service.FrontProductService;
@Service
public class FrontProductServiceImpl implements FrontProductService{
	@Autowired
	FrontProductDao frontProductDao;
	@Override
	public List<FrontProduct> doFrontProduct() {
		List<FrontProduct> findProducts = frontProductDao.findProducts();
		if(findProducts==null)
			new IllegalArgumentException("暂时没有商品展示");
		return findProducts;
	}
//	@Override
//	public List<FrontProduct> doFrontAllProduct() {
//		List<FrontProduct> findProducts = frontProductDao.findAllProducts();
//		if(findProducts==null)
//			new IllegalArgumentException("暂时没有商品展示");
//		return findProducts;
//	}

}
